package com.etc.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author kalista
 * @Description
 * @Date 2021/3/19  18:53
 **/
@RestController
@RequestMapping("/payment")
public class PaymentController {

    @GetMapping("/index")
    public String index(){
        return "successs";
    }


    @GetMapping("/timeout")
    public String timeout(){
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "success time out";
    }
}
